/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package boole.application;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Rémi PIOTAIX <remi.piotaix@gmail.com>
 */
public class CircuitFileFilter extends FileFilter {

    @Override
    public boolean accept(File f) {
        return f.getName().endsWith(".dcf") || !f.getName().contains(".");
    }

    @Override
    public String getDescription() {
        return "Descrpteurs de circuits: *.dcf, *";
    }

}
